<template>
  <div class="h-city-header">
    <!--to="/" 代表回到根路径-->
    <router-link to="/">
      <span class="iconfont h-header-back">&#xe624;</span>
    </router-link>
    <h1 class="h-header-title">城市选择</h1>
  </div>
</template>

<script>
export default {
  name: 'CityHeader'
}
</script>

<style lang="stylus" scope>
@import '~@/assets/styles/varibles.styl';

.h-city-header {
  position: relative;
  background: #00bcd4;
  height: $headerHeight;

  .h-header-back {
    left: 0;
    top: 0;
    width: 0.8rem;
    height: $headerHeight;
    line-height: $headerHeight;
    position: absolute;
    font-size: 0.36rem;
    color: #fff;
    text-align: center;
    // background: blue;
  }

  .h-header-title {
    overflow: hidden;
    margin: 0 1rem;
    line-height: $headerHeight;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.32rem;
    text-align: center;
    color: #fff;
    // background: red;
  }
}
</style>
